package com.builder.improve;

/**
 * @author 薛虎
 * @date 2021/1/6 11:04
 */
//抽象的建造者
public abstract class HouseBuilder {

    protected House house = new House();

    //将建造的流程写好,抽象方法
    public abstract void buildBasic();

    public abstract void buildWalls();

    public abstract void roofed();

    //建造好房子后,将产品(房子)返回
    public House buildHouse() {
        return house;
    }

}
